const express = require('express');
const db = require('../uilit/mysql');

const router=express.Router();

router.post('/selectPro',(req,res)=>{
    const sql=`select * from province`;
    db.query(sql,(err,data)=>{
        if(err){
            console.log(err);
        }else{
            console.log(data)
            res.send({data:data});
        }
    })
})

module.exports=router;
